package com.zzx.service.Impl;

import com.zzx.domain.Account;
import com.zzx.mapper.AccountMapper;
import com.zzx.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

@Service("accountService")
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountMapper accountMapper;
    @Override
    public void save(Account account) {
        accountMapper.save(account);
        System.out.println("accountMapper.save(account) finished 。。。。。。。。。");
    }

    @Override
    public List<Account> findAll() {

        return accountMapper.findAll();
    }
}
